'''
Created on 03/09/2010

@author: lctr30
'''
import pygtk
pygtk.require('2.0')
import gtk


from gui.window import Window
from gui.table import Table
from gui.label import Label

class my_window:
    def __init__(self):
        self.w = Window()
        self.w.set_size(200, 200)
        self.w.set_escape_destroy()
        
        self.t = Table()
        self.t.set_padding(10)
        self.t.set_ypadding(2)
        self.t.set_border_width(10)
        
            
        for i in range(3):
            self.t.attach_right(gtk.Button(label='hello r' + str(i)))
        for i in range(3):
            self.t.attach_down(gtk.Button(label='hello d' + str(i)))

        l = Label(str='holaa')
        l.set_bold()
        self.t.attach_down(l)
        
        self.w.add((self.t))
        
        self.w.show()
        gtk.main()
    
  
if __name__=='__main__':
    c = my_window()